<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
    <title>测试</title>
    <link rel="stylesheet" href="css/wap/main.css"/>
    <style>
        html{
            font-size:20px;
        }
        .d1,.d2,.d3{
            width:6rem;
            height:100px;
            position:absolute;
        }
        .d1{background: red;z-index: 3;top:10px;}
        .d2{background: green;z-index:2;top:20px;}
        .d3{background: gray;z-index:1;top:30px;}
    </style>
</head>
<body>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
    <script src="js/jquery-1.8.3.min.js"></script>
    <script>
        var width=$(window).width();
        console.log(width);
        // console.log($('.d1').offsetHeight());
        console.log(document.getElementByTap("body").clientHeight());
    </script>
</body>

</html>






312312313
















